import { defineFakeRoute } from "vite-plugin-fake-server/client";

// 模拟动态路由结构（支持嵌套 + 权限字段）
export default defineFakeRoute([
  {
    url: "/api/user/routes",
    method: "get",
    response: () => ({
      code: 0,
      data: ["/dashboard", "/user", "/activity", "/admin", "/screen"], // 你想显示哪些菜单，就列哪些
    }),
  },
]);
